/**
 * @author DongPing
 * 2022/2/17 15:04
 *
 * 防止明细项校验不通过的时候所有的表格列组件都变红，对antd样式调整
 *
 * */
import {PropsWithChildren} from "react";
import './ValidateStyleAdjustment.less';

export function ValidateStyleAdjustment(props: PropsWithChildren< {
	invalid: boolean
}>) {
	let {invalid} = props;
	return (
		<div className={"antd-validate-style-adjustment " + (invalid ? 'invalid' : '')}>
			{
				props.children
			}
		</div>
	)
}
